home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19960209-19960425 / 000478_news@columbia.edu _Thu Apr 25 09:30:05 1996.msg < prev   
Internet Message Format  |  2020-01-01  |  5KB

  1. Return-Path: news@columbia.edu
  2. Received: from apakabar.cc.columbia.edu (apakabar.cc.columbia.edu [128.59.35.159]) by watsun.cc.columbia.edu (8.7.5/8.7.3) with ESMTP id JAA28961 for <kermit.misc@watsun>; Thu, 25 Apr 1996 09:30:04 -0400 (EDT)
  3. Received: (from news@localhost) by apakabar.cc.columbia.edu (8.7.5/8.7.3) id JAA00205 for kermit.misc@watsun; Thu, 25 Apr 1996 09:30:01 -0400 (EDT)
  4. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  5. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  6. Newsgroups: comp.protocols.kermit.misc
  7. Subject: Re: kermit for AS/400 (was Re: Multi-platform File Transfer)
  8. Date: 25 Apr 1996 13:29:23 GMT
  9. Organization: Columbia University
  10. Lines: 75
  11. Message-ID: <4lnunj$68@apakabar.cc.columbia.edu>
  12. References: <31727860.2781@tkg.com> <Dq0J1x.ByB@cyberdex.cuug.ab.ca> <4l43sd$550@apakabar.cc.columbia.edu> <960424.001900.1g0.rnr.w164w_-_@locutus.ofB.ORG>
  13. NNTP-Posting-Host: watsun.cc.columbia.edu
  14.  
  15. In article <960424.001900.1g0.rnr.w164w_-_@locutus.ofB.ORG>,
  16. Russell Schulz <Russell_Schulz@locutus.ofB.ORG> wrote:
  17. : jaltman@watsun.cc.columbia.edu (Jeffrey Altman) writes:
  18. : > : Naw, check out Kermit...
  19. : >
  20. : > I would love to recommend Kermit, but we don't have Kermit for AS/400.
  21. : > Many times people ask us if they can port Kermit to OS/400.  And then
  22. : > we never hear from them again.
  23. : > So it can't be too easy.
  24. : how much pain is it to write a simple kermit, if you force everything
  25. : even slightly suspicious to be escaped?
  26. : -- 
  27. :
  28. Be my guest :-)
  29.  
  30. Among the problems to be considered are:
  31.  
  32.  1. Terminal i/o for the AS/400 is unlike anything else on earth.
  33.     Synchronous, half-duplex, block-mode, twinaxial cable 5250 and
  34.     associated controllers.
  35.  
  36.  2. The file system is based on EBCDIC rather than ASCII.
  37.  
  38. Granted, these problems are solvable (soluble?) since, indeed, we solved
  39. similar problems at the very beginning when designing the Kermit protocol
  40. to be "IBM-mainframe friendly".  See pages 108-113 of "Kermit, A File
  41. Transfer Protocol".  First, you need a way to defeat the 5250ness of the
  42. terminal (or Telnet) connection by putting it into "transparent mode".
  43. Does anybody know how to do that?  Note that there is probably not just
  44. one way to do this, but "n" different ways, where "n" is the number of
  45. different 5250 control units and/or protocol converters on the market,
  46. both from IBM and from third parties.
  47.  
  48. Of course, we might still be able to get through a controller even when it
  49. is not transparent using the infamous "Doomsday Kermit" extensions introduced
  50. a few years and described in Kermit News #5, June 1993, but "DDK" transfers
  51. are necessarily quite slow.  (Kermit News #5 is available on the Web as
  52. http://www.columbia.edu/kermit/newsn5.html.)
  53.  
  54. In any case, I would not be surprised if the APIs to the i/o subsystem are
  55. hideously complex and obscure -- nothing like "read a character, write a
  56. character" that most of us are accustomed to -- more like fill in seventeen
  57. control blocks with mysterious control words, write a channel program in
  58. assembly language and load it into the controller, start an asynchronous i/o
  59. operation, and then wait for some interrupt to happen.  Just a guess.  Of
  60. course, if you are an AS/400 programmer, this is your bread and butter.
  61.  
  62. Second, there are numerous problems stemming from the EBCDIC file-system
  63. orientation, beginning with the program source code itself (e.g. if you
  64. were to try to port C-Kermit), which more or less assumes the ASCII
  65. collating sequence, to communications i/o (in which, for example, packet
  66. checksums or CRCs are based upon the ASCII values of the characters in the
  67. packet), not to mention the fact that any communications to the "outside"
  68. (i.e. non-5250) world is going to be translating everything between EBCDIC
  69. and ASCII...  So think about it -- textual is read from the disk in EBCDIC,
  70. translated to ASCII so the checksum can be formed, the packet is then
  71. translated from ASCII back to EBCDIC so that the communications subsystem
  72. can translate back to ASCII (again)...
  73.  
  74. Third...  Do you also want it to be able to initiate connections?  Dial
  75. out or Telnet?  How would you dial out?  Where is the modem?  And consider
  76. how you, sitting at a block-mode 5250 terminal, would have an interactive
  77. terminal session with, say, UNIX or a BBS.
  78.  
  79. The list goes on.
  80.  
  81. It's not impossible, but it appears to be hard enough that nobody has yet
  82. been able to do it -- and this goes back to the System 34/36/38 days more
  83. than a decade ago, a time when we had more than a small handful of
  84. volunteer programmers eager to crank out new Kermit implementations.
  85.  
  86. Go ahead, make my day :-)
  87.  
  88. - Frank